<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>

<html>
	<head>
		<title>创建角色</title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<script type="text/javascript" src="${path}/js/jquery.js"></script>
		<link rel="stylesheet" href="${path}/css/backsys/ctx.css">
		<script type="text/javascript">
			function roleAddRes(type) {
				var roleName = $("#roleName").val() ;
				var roleDesc = $("#roleDesc").val() ;

				if(type != "") {
					if(roleName != "" && roleDesc != "") {
						document.form.submit() ;
					} else {
						alert("请填写完整信息") ; 
					}
				}
			}
		</script>
	</head>

	<body>
	<div class="ctx">
			<form name="form" action="${path}/privilegeRole!creareRole.action" method="post">
				<table class="ow" width="70%">
					<tr>
						<th height="30" colspan="2" align="left">创建角色</th>
						
					</tr>
					<tr>
						<td align="right" width="40%">角色名称：</td>
						<td><input type="text" id="roleName" name="roleVo.roleName" /></td>
					</tr>
					<tr>
						<td align="right">角色描述：</td>
						<td><input type="text" id="roleName" name="roleVo.roleDesc" /></td>
					</tr>
					<tr>
						<td align="right">分配资源：</td>
						<td>
							<select name="type" onchange="roleAddRes(options[this.selectedIndex].value)">
								<option selected="selected">请选择</option>
								<option value="EAGER">立刻</option>
								<option value="LAZY">稍后</option>
							</select>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>
